package reflect;

import java.util.ArrayList;
import java.util.Scanner;

public class ReflectDemo2 {
    public static void main(String[] args) throws Exception {
        ArrayList list= new ArrayList();
        System.out.println(list);

        Scanner scan = new Scanner(System.in);
//        System.out.println("请输入类名");
//        String className = scan.nextLine();
        Class cls = Class.forName("reflect.Person");
        Object obj = cls.newInstance();
        System.out.println(obj);
    }
}
